@keyframes ant-progress-active {
  0% {
    width: 0;
    opacity: 0.1;
  }

  20% {
    width: 0;
    opacity: 0.5;
  }

  100% {
    width: 100%;
    opacity: 0;
  }
}

.mr-read {
  position: fixed;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 89;
  cursor: pointer;

  &:hover {
    .mr-read-tooltip {
      display: flex;
    }
  }
  &-progress {
    height: 4px;
    width: 100%;
    background: $gray-02;
    border-radius: 6px;
    position: relative;
    &-content {
      height: 4px;
      border-radius: 6px;
      background-color: $border-brand;
      &::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: #fff;
        border-radius: 10px;
        opacity: 0;
        animation: ant-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) 3;
        content: '';
      }
    }
  }

  &-tooltip {
    height: 28px;
    background: #fff;
    box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    display: none;
    align-items: center;
    position: absolute;
    top: -14px;
    &.next {
      display: flex;
    }
    &-text {
      height: 28px;
      padding: 0 8px;
      display: flex;
      align-items: center;
      font-size: 12px;
      line-height: 20px;
      color: $gray-08;
      .gray {
        color: $gray-06;
        padding-left: 2px;
      }
      &.completed {
        padding-right: 10px;
      }
    }

    .go-first-icon {
      color: $primary-brand;
      padding: 0 8px;
      height: 28px;
      cursor: pointer;
      border-left: 1px solid $gray-02;
      display: flex;
      align-items: center;
      &.completed {
        display: none;
      }
      & > i {
        font-size: 18px;
      }
    }

    .close-icon {
      height: 28px;
      padding: 0 8px;
      cursor: pointer;
      color: $gray-06;
      border-left: 1px solid $gray-02;
      display: flex;
      align-items: center;
      & > i {
        font-size: 18px;
      }
    }

    .go-next-icon {
      height: 28px;
      border-left: 1px solid $gray-02;
      padding: 0 8px;
      display: flex;
      align-items: center;
      font-size: 14px;
      color: $gray-06;
      cursor: pointer;
      &.completed {
        color: $gray-06;
        cursor: not-allowed;
      }
      & > i {
        font-size: 18px;
      }
    }
  }
}
